<?php
declare(strict_types=1);

namespace app\admin\validate;

use think\Validate;


class CheckCompany extends Validate
{
    protected $rule = [
        'name' => 'require|unique:company',
        'contact' => 'require',
        'thumb' => 'require',
        'phone' => 'require',
        'legal' => 'require',
    ];

    protected $message = [
        'name.require' => '企业名称必须填写',
        'name.unique' => '企业名称己存在',

        'contact.require' => '联系人必须填写',
        'thumb.require' => '营业执照必须上传',
        'phone.require' => '联系电话必须填写',
        'legal.require' => '法人必须填写',




    ];
    protected $scene = [
        'add'  =>  ['name'],

    ];
}

